<?php
$v_filter = "";
if(isset($_REQUEST['hdn_filter'])){
	$v_filter=_replace_bad_char(trim($_REQUEST['hdn_filter']));
}
$v_recordtype_id = "";
if(isset($_REQUEST['hdn_recordtype_id'])){
	$v_recordtype_id=$_REQUEST['hdn_recordtype_id'];
}

$v_id = 0;
if(isset($_REQUEST['hdn_report_type_id'])){	
	$v_id = intval($_REQUEST['hdn_report_type_id']);
}
$v_order =0;
if(isset($_REQUEST['hdn_max_order'])){	
	$v_cate_order = intval($_REQUEST['hdn_max_order'])+1;
}
if($v_id >0){
	if(_is_sqlserver()){
		$cmd = @mssql_init("Onegate_ReportTypeGetSingle",$conn);
		@mssql_bind($cmd,"@p_report_type_id",$v_id,SQLINT4);
		$result = mssql_execute($cmd);
		$arr_single = _get_row_to_array($result);
		//Giai phong bien nho
		@mssql_free_result($result);
	}		
}
?>